Integrand size = 35, antiderivative size = 216 \[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^{3/2}} \, dx=\frac {(A+i B) \arctan \left (\frac {\sqrt {i a-b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{(i a-b)^{3/2} d}-\frac {(A-i B) \text {arctanh}\left (\frac {\sqrt {i a+b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{(i a+b)^{3/2} d}-\frac {2 A}{a d \sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}}-\frac {2 b \left (a^2 A+2 A b^2-a b B\right ) \sqrt {\tan (c+d x)}}{a^2 \left (a^2+b^2\right ) d \sqrt {a+b \tan (c+d x)}} \]
[Out]
Time = 1.21 (sec) , antiderivative size = 216, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3690, 3730, 3697, 3696, 95, 209, 212} \[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^{3/2}} \, dx=-\frac {2 b \left (a^2 A-a b B+2 A b^2\right ) \sqrt {\tan (c+d x)}}{a^2 d \left (a^2+b^2\right ) \sqrt {a+b \tan (c+d x)}}+\frac {(A+i B) \arctan \left (\frac {\sqrt {-b+i a} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{d (-b+i a)^{3/2}}-\frac {(A-i B) \text {arctanh}\left (\frac {\sqrt {b+i a} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{d (b+i a)^{3/2}}-\frac {2 A}{a d \sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}} \]
[In]
[Out]
Rule 95
Rule 209
Rule 212
Rule 3690
Rule 3696
Rule 3697
Rule 3730
Rubi steps \begin{align*} \text {integral}& = -\frac {2 A}{a d \sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}}-\frac {2 \int \frac {\frac {1}{2} (2 A b-a B)+\frac {1}{2} a A \tan (c+d x)+A b \tan ^2(c+d x)}{\sqrt {\tan (c+d x)} (a+b \tan (c+d x))^{3/2}} \, dx}{a} \\ & = -\frac {2 A}{a d \sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}}-\frac {2 b \left (a^2 A+2 A b^2-a b B\right ) \sqrt {\tan (c+d x)}}{a^2 \left (a^2+b^2\right ) d \sqrt {a+b \tan (c+d x)}}-\frac {4 \int \frac {\frac {1}{4} a^2 (A b-a B)+\frac {1}{4} a^2 (a A+b B) \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}} \, dx}{a^2 \left (a^2+b^2\right )} \\ & = -\frac {2 A}{a d \sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}}-\frac {2 b \left (a^2 A+2 A b^2-a b B\right ) \sqrt {\tan (c+d x)}}{a^2 \left (a^2+b^2\right ) d \sqrt {a+b \tan (c+d x)}}-\frac {(A-i B) \int \frac {1+i \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}} \, dx}{2 (i a+b)}-\frac {((i a+b) (A+i B)) \int \frac {1-i \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}} \, dx}{2 \left (a^2+b^2\right )} \\ & = -\frac {2 A}{a d \sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}}-\frac {2 b \left (a^2 A+2 A b^2-a b B\right ) \sqrt {\tan (c+d x)}}{a^2 \left (a^2+b^2\right ) d \sqrt {a+b \tan (c+d x)}}-\frac {(A-i B) \text {Subst}\left (\int \frac {1}{(1-i x) \sqrt {x} \sqrt {a+b x}} \, dx,x,\tan (c+d x)\right )}{2 (i a+b) d}-\frac {((i a+b) (A+i B)) \text {Subst}\left (\int \frac {1}{(1+i x) \sqrt {x} \sqrt {a+b x}} \, dx,x,\tan (c+d x)\right )}{2 \left (a^2+b^2\right ) d} \\ & = -\frac {2 A}{a d \sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}}-\frac {2 b \left (a^2 A+2 A b^2-a b B\right ) \sqrt {\tan (c+d x)}}{a^2 \left (a^2+b^2\right ) d \sqrt {a+b \tan (c+d x)}}-\frac {(A-i B) \text {Subst}\left (\int \frac {1}{1-(i a+b) x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{(i a+b) d}-\frac {((i a+b) (A+i B)) \text {Subst}\left (\int \frac {1}{1-(-i a+b) x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\left (a^2+b^2\right ) d} \\ & = \frac {(A+i B) \arctan \left (\frac {\sqrt {i a-b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{(i a-b)^{3/2} d}-\frac {(A-i B) \text {arctanh}\left (\frac {\sqrt {i a+b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{(i a+b)^{3/2} d}-\frac {2 A}{a d \sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}}-\frac {2 b \left (a^2 A+2 A b^2-a b B\right ) \sqrt {\tan (c+d x)}}{a^2 \left (a^2+b^2\right ) d \sqrt {a+b \tan (c+d x)}} \\ \end{align*}
Time = 2.33 (sec) , antiderivative size = 248, normalized size of antiderivative = 1.15 \[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^{3/2}} \, dx=\frac {\frac {\sqrt [4]{-1} \left (\frac {(a+i b) (A-i B) \arctan \left (\frac {\sqrt [4]{-1} \sqrt {-a+i b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\sqrt {-a+i b}}-\frac {(a-i b) (A+i B) \arctan \left (\frac {\sqrt [4]{-1} \sqrt {a+i b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\sqrt {a+i b}}\right )}{a^2+b^2}-\frac {2 A}{a \sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}}-\frac {2 b \left (a^2 A+2 A b^2-a b B\right ) \sqrt {\tan (c+d x)}}{a^2 \left (a^2+b^2\right ) \sqrt {a+b \tan (c+d x)}}}{d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(5197\) vs. \(2(186)=372\).
Time = 3.93 (sec) , antiderivative size = 5198, normalized size of antiderivative = 24.06
method | result | size |
default | \(\text {Expression too large to display}\) | \(5198\) |
parts | \(\text {Expression too large to display}\) | \(1560457\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 18689 vs. \(2 (180) = 360\).
Time = 7.04 (sec) , antiderivative size = 18689, normalized size of antiderivative = 86.52 \[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^{3/2}} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^{3/2}} \, dx=\int \frac {A + B \tan {\left (c + d x \right )}}{\left (a + b \tan {\left (c + d x \right )}\right )^{\frac {3}{2}} \tan ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^{3/2}} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^{3/2}} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \tan (c+d x)}{\tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^{3/2}} \, dx=\text {Hanged} \]
[In]
[Out]